package com.example.demo5072.repository;

import com.example.demo5072.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserRepository extends JpaRepository<User,Integer> {


    @Query("select t from User t where uid = ?1 and pwd = ?2")
    User findByUidAndPwd(String uid , String pwd);
}
